node.js - How to fix a generated Error: Enoent? A result from a command line to install Zurb Foundation for Apps -
i installed node.js , updated $path environment. after several attempts install zurb foundation apps same errors. how go fixing it? insight appreciated. thanks!
i run command...
npm install -g foundation-cli bower gulp
i following errors
error: enoent: no such file or directory, stat '/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/upload.js' @ error (native) @ object.fs.statsync (evalmachine.<anonymous>:849:18) @ /usr/local/lib/node_modules/npm/node_modules/npm-registry-client/index.js:54:19 @ array.foreach (native) @ cachingregistryclient.regclient (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/index.js:50:42) @ new cachingregistryclient (/usr/local/lib/node_modules/npm/lib/cache/caching-client.js:20:18) @ /usr/local/lib/node_modules/npm/lib/npm.js:363:22 @ /usr/local/lib/node_modules/npm/lib/config/core.js:82:7 @ array.foreach (native) @ /usr/local/lib/node_modules/npm/lib/config/core.js:81:13 npm err! darwin 14.4.0 npm err! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "foundation-cli" "bower" "gulp" npm err! node v4.1.1 npm err! npm v2.14.4 npm err! path /usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/upload.js npm err! code enoent npm err! errno -2 npm err! syscall stat npm err! enoent enoent: no such file or directory, stat '/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/upload.js' npm err! enoent not problem npm npm err! enoent , related npm not being able find file. npm err! enoent
i don't think upload.js
file should in directory. had exact same error. went directory , typed ls -a
lrwxr-xr-x 1 jay admin 105 dec 7 2013 upload.js -> ../../../../../../cellar/node/0.10.22/lib/node_modules/npm/node_modules/npm-registry-client/lib/upload.js
it old symlink version of node long gone installed homebrew
. remove symlink reinstalled node, no upload.js installed don't think it's file exist in current node. works me!!
Comments
Post a Comment