node.js - Apparently I deleted some of the files on the node_module, how can I restore them? -
i trying install node trough brew , giving lot of errors, , apparently file not giving permission, thunked file other failed seek intall node , decide remove directory. failed remove dir , files, apparently had been erased.
they are: module.js:340 throw err; ^ error: cannot find module 'child-process-close' @ function.module._resolvefilename (module.js:338:15) @ function.module._load (module.js:280:25) @ module.require (module.js:364:17) @ require (module.js:380:17) @ /usr/local/lib/node_modules/npm/lib/npm.js:15:1 @ object. (/usr/local/lib/node_modules/npm/lib/npm.js:461:3) @ module._compile (module.js:456:26) @ object.module._extensions..js (module.js:474:10) @ module.load (module.js:356:32) @ function.module._load (module.js:312:12)
how can solve this? wanted seek sails.js fun, didn't see fun time yet, problems.
thank you
i know super late. however, getting same error while trying react native app , running.
i installed node homebrew , after getting following:
error: cannot find module 'child-process-close' @ function.module._resolvefilename (module.js:336:15) @ function.module._load (module.js:278:25) @ module.require (module.js:365:17) @ require (module.js:384:17) @ /usr/local/lib/node_modules/npm/lib/npm.js:15:1 @ object.<anonymous> (/usr/local/lib/node_modules/npm/lib/npm.js:520:3) @ module._compile (module.js:460:26) @ object.module._extensions..js (module.js:478:10) @ module.load (module.js:355:32) @ function.module._load (module.js:310:12)
i ran brew postinstall node
, got:
permission denied - /usr/local/lib/node_modules/npm/authors
so ran:
sudo brew postinstall node
and seemed work fine. go installing waterline, firebase, or whatever else tried.
hope helps!
node.js sails.js
No comments:
Post a Comment