-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dva创建应用报错 #436
Comments
好像是 cnpm 没安装好,你直接用 cnpm install 一个模块会报错吗? |
@sorrycc 谢谢。重新安装了cnpm,搞定😄 |
脚本提示明明使用的npm安装的,为啥用到了cnpm了。把cnpm卸载了,也可以。。 |
F:\WebPro\dvapro>dva new dvatest Error: spawn cmd ENOENT 创建项目报这个错 不知道是什么原因了 |
$ dva new demoapp --demo /usr/local/lib/node_modules/dva-cli/bin/dva-new
use npm: tnpm |
➜ dva-demo dva new user-dashboard2
/usr/local/opt/nvm/versions/node/v7.3.0/lib/node_modules/dva-cli/bin/dva-new
Creating a new Dva app in /Users/fyh/WebstormProjects/dva-demo/user-dashboard2.
use npm: cnpm
module.js:472
throw err;
^
Error: Cannot find module 'internal/fs'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at evalmachine.:17:20
at Object. (/usr/local/lib/node_modules/cnpm/node_modules/npm/node_modules/npm-registry-client/node_modules/graceful-fs/fs.js:11:1)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
module.js:472
throw err;
^
Error: Cannot find module 'internal/fs'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at evalmachine.:17:20
at Object. (/usr/local/lib/node_modules/cnpm/node_modules/npm/node_modules/npm-registry-client/node_modules/graceful-fs/fs.js:11:1)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
cnpm install end
Success! Created user-dashboard2 at /Users/fyh/WebstormProjects/dva-demo/user-dashboard2.
Inside that directory, you can run several commands:
We suggest that you begin by typing:
cd /Users/fyh/WebstormProjects/dva-demo/user-dashboard2
npm start
Happy hacking!
➜ dva-demo
The text was updated successfully, but these errors were encountered: