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 install 时报错 #35

Open
sgwood opened this issue Jan 15, 2016 · 1 comment
Open

npm install 时报错 #35

sgwood opened this issue Jan 15, 2016 · 1 comment

Comments

@sgwood
Copy link

sgwood commented Jan 15, 2016

image

见上图,是否是nodejs和npm版本过高,已经安装好了Node, NPM, Ionic, Cordova, Grunt and Bower。

@DotHide
Copy link

DotHide commented Feb 29, 2016

遇到了相同的问题,其实是 cordova 装不上去,你可以直接运行 $ npm i -D cordova 会遇到同样的报错,在它安装过程中,node_modules/ 目录下会生成 cordova/ 和 cordova-lib/ 两个文件夹,随后又被自动删了,这时就报这个错了,因为文件夹没了,所以定位不到文件。

我的解决方法比较粗暴:我在它生成这两个文件夹的时候马上 Ctrl + C 终止 npm install ,然后手动将文件夹置为只读,再做一遍 $ npm i -D cordova 居然就好了~

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