我是famo.us的新用户,我正在尝试从git repository命令安装它,但我无法在我的电脑上安装它,我正在使用command
跟随它在我的电脑上使用{ {1}}
命令:
CMD
每次我尝试安装的错误都是:
错误:
npm install -g yo grunt-cli bower generator-famous
我不知道我哪里出错了,请帮我解决这个问题。
感谢。
修改
npm debug.log文件:
npm ERR! Error: UNKNOWN, open 'C:\Users\Ahsan Hussain\AppData\Roaming\npm-cache\
chalk\0.5.1\package\package.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo" "grunt-
cli" "bower" "generator-famous"
npm ERR! cwd C:\Users\Ahsan Hussain\Desktop\famous
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path C:\Users\Ahsan Hussain\AppData\Roaming\npm-cache\chalk\0.5.1\packa
ge\package.json
npm ERR! code UNKNOWN
npm ERR! errno -1
npm ERR! fetch failed https://registry.npmjs.org/gruntfile-editor/-/gruntfile-ed
itor-0.2.0.tgz
C:\Users\Ahsan Hussain\AppData\Roaming\npm\grunt -> C:\Users\Ahsan Hussain\AppDa
ta\Roaming\npm\node_modules\grunt-cli\bin\grunt
npm ERR! unpack Could not read data for uuid@1.4.1
npm ERR! Error: ENOENT, chmod 'C:\Users\Ahsan Hussain\AppData\Roaming\npm\node_m
odules\generator-famous\node_modules\update-notifier\node_modules\configstore\no
de_modules\graceful-fs\.npmignore'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo" "grunt-
cli" "bower" "generator-famous"
npm ERR! cwd C:\Users\Ahsan Hussain\Desktop\famous
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path C:\Users\Ahsan Hussain\AppData\Roaming\npm\node_modules\generator-
famous\node_modules\update-notifier\node_modules\configstore\node_modules\gracef
ul-fs\.npmignore
npm ERR! fstream_path C:\Users\Ahsan Hussain\AppData\Roaming\npm\node_modules\ge
nerator-famous\node_modules\update-notifier\node_modules\configstore\node_module
s\graceful-fs\.npmignore
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chmod
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack C:\Program Files (x86)\nodejs\node_modules\npm\node_modul
es\fstream\lib\writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, chmod 'C:\Users\Ahsan Hussain\AppData\Roaming\npm\node_m
odules\generator-famous\node_modules\update-notifier\node_modules\configstore\no
de_modules\js-yaml\package.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo" "grunt-
cli" "bower" "generator-famous"
npm ERR! cwd C:\Users\Ahsan Hussain\Desktop\famous
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path C:\Users\Ahsan Hussain\AppData\Roaming\npm\node_modules\generator-
famous\node_modules\update-notifier\node_modules\configstore\node_modules\js-yam
l\package.json
npm ERR! fstream_path C:\Users\Ahsan Hussain\AppData\Roaming\npm\node_modules\ge
nerator-famous\node_modules\update-notifier\node_modules\configstore\node_module
s\js-yaml\package.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chmod
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack C:\Program Files (x86)\nodejs\node_modules\npm\node_modul
es\fstream\lib\writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, chmod 'C:\Users\Ahsan Hussain\AppData\Roaming\npm\node_m
odules\generator-famous\node_modules\update-notifier\node_modules\configstore\no
de_modules\mkdirp\.npmignore'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo" "grunt-
cli" "bower" "generator-famous"
npm ERR! cwd C:\Users\Ahsan Hussain\Desktop\famous
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path C:\Users\Ahsan Hussain\AppData\Roaming\npm\node_modules\generator-
famous\node_modules\update-notifier\node_modules\configstore\node_modules\mkdirp
\.npmignore
npm ERR! fstream_path C:\Users\Ahsan Hussain\AppData\Roaming\npm\node_modules\ge
nerator-famous\node_modules\update-notifier\node_modules\configstore\node_module
s\mkdirp\.npmignore
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chmod
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack C:\Program Files (x86)\nodejs\node_modules\npm\node_modul
es\fstream\lib\writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat 'C:\Users\Ahsan Hussain\AppData\Roaming\npm\node_m
odules\generator-famous\node_modules\update-notifier\node_modules\configstore\no
de_modules\osenv\.npmignore'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo" "grunt-
cli" "bower" "generator-famous"
npm ERR! cwd C:\Users\Ahsan Hussain\Desktop\famous
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path C:\Users\Ahsan Hussain\AppData\Roaming\npm\node_modules\generator-
famous\node_modules\update-notifier\node_modules\configstore\node_modules\osenv\
.npmignore
npm ERR! fstream_path C:\Users\Ahsan Hussain\AppData\Roaming\npm\node_modules\ge
nerator-famous\node_modules\update-notifier\node_modules\configstore\node_module
s\osenv\.npmignore
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack C:\Program Files (x86)\nodejs\node_modules\npm\node_modul
es\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, open 'C:\Users\Ahsan Hussain\AppData\Roaming\npm\node_mo
dules\generator-famous\node_modules\update-notifier\node_modules\configstore\nod
e_modules\object-assign\object-assign.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo" "grunt-
cli" "bower" "generator-famous"
npm ERR! cwd C:\Users\Ahsan Hussain\Desktop\famous
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path C:\Users\Ahsan Hussain\AppData\Roaming\npm\node_modules\generator-
famous\node_modules\update-notifier\node_modules\configstore\node_modules\object
-assign\object-assign.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\Ahsan Hussain\Desktop\famous\npm-debug.log
npm ERR! not ok code 0
答案 0 :(得分:2)
看起来npm正在尝试从本地缓存中获取模块。尝试使用npm cache clear
强制它联机以获取将来的包,然后重新运行yo famous
命令。