This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Cannot run npm install
on a newly-cloned repository #13123
Closed
Description
Running npm install
on a freshly-cloned repository fails, and leaves no node_modules
folder intact:
> angularjs@ preinstall /home/schmod/source/angular.js
> node scripts/npm/check-node-modules.js --purge
:-( npm dependencies are stale or in an unknown state!
Purging 'node_modules'...
> angularjs@ postinstall /home/schmod/source/angular.js
> node scripts/npm/copy-npm-shrinkwrap.js
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Failed to copy `npm-shrinkwrap.json` to `node_modules/npm-shrinkwrap.cached.json`:
{ [Error: ENOENT: no such file or directory, open 'node_modules/npm-shrinkwrap.cached.json']
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'node_modules/npm-shrinkwrap.cached.json' }
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
NPM v3.3.8; Node 4.2.1; Ubuntu 15.04