Skip to content
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

执行npm报错 #3

Open
chishichao opened this issue Feb 22, 2016 · 3 comments
Open

执行npm报错 #3

chishichao opened this issue Feb 22, 2016 · 3 comments

Comments

@chishichao
Copy link

C:\ant-koa-demo-master>cnpm run dev

[email protected] dev C:\ant-koa-demo-master
node index.js

listening on port 3001

npm ERR! Windows_NT 6.1.7600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\chishichao\AppD
ata\Roaming\npm\node_modules\cnpm\node_modules\npm\bin\npm-cli.js" "--us
erconfig=C:\Users\chishichao.cnpmrc" "--disturl=https://npm.taobao.org/mirro
rs/node" "--cache=C:\Users\chishichao.cnpm" "--registry=https://registry.npm
.taobao.org" "--node-gyp=C:\Users\chishichao\AppData\Roaming\npm\node_modu
les\cnpm\node_modules\node-gyp\bin\node-gyp.js" "run" "dev"
npm ERR! node v5.4.1
npm ERR! npm v2.14.19
npm ERR! code ELIFECYCLE
npm ERR! [email protected] dev: node index.js
npm ERR! Exit status 3221225501
npm ERR!
npm ERR! Failed at the [email protected] dev script 'node index.js'.
npm ERR! This is most likely a problem with the ant-koa-demo package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node index.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ant-koa-demo
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls ant-koa-demo
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\ant-koa-demo-master\npm-debug.log

@Carrotzpc
Copy link
Owner

第一次执行 cnpm install的时候是不是有报错?重新执行cnpm install,然后执行npm run dev试下

@chishichao
Copy link
Author

重新执行了cnpm install,但是还是报错。报了好多依赖错误,安装了几个,还是一直报依赖错误??
module.js:327
throw err;
^

Error: Cannot find module 'humanize-number'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (C:\ant-koa-demo-master\node_modules\koa-logger\index.
js:6:16)
at Module._compile (module.js:397:26)
at Object.Module._extensions..js (module.js:404:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
▌ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

@Carrotzpc
Copy link
Owner

这种情况要把项目根目录node_modules文件夹删除,把 npm 升级到3.0以上,执行 cnpm install,参考ant-design/ant-design#650

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants