每次在项目中运行npm install时,我都会收到以下错误:
npm WARN checkPermissions Missing write access to /../node_modules/is
npm ERR! path /.../node_modules/is
npm ERR! code ELOOP
npm ERR! errno -62
npm ERR! syscall access
npm ERR! ELOOP: too many symbolic links encountered, access '/.../node_modules/is'
npm ERR! A complete log of this run can be found in:
npm ERR! /.../.npm/_logs/2017-07-14T15_19_32_340Z-debug.log
删除名为""的快捷方式文件后,问题得到解决。在我的node_modules文件夹中。但是在成功运行npm之后它会再次重新生成。
以下是我的package.json:
{
"name": "SDKIonic",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "4.1.3",
"@angular/compiler": "4.1.3",
"@angular/compiler-cli": "4.1.3",
"@angular/core": "^4.1.3",
"@angular/forms": "4.1.3",
"@angular/http": "4.1.3",
"@angular/platform-browser": "4.1.3",
"@angular/platform-browser-dynamic": "4.1.3",
"@ionic-native/core": "3.10.2",
"@ionic-native/splash-screen": "3.10.2",
"@ionic-native/status-bar": "3.10.2",
"@ionic/storage": "2.0.1",
"airwatch-sdk-plugin": "^1.0.7",
"cordova-android": "^6.2.3",
"cordova-ios": "^4.4.0",
"cordova-plugin-console": "^1.0.5",
"cordova-plugin-device": "^1.1.4",
"cordova-plugin-splashscreen": "^4.0.3",
"cordova-plugin-statusbar": "^2.2.2",
"cordova-plugin-whitelist": "^1.3.1",
"ionic-angular": "3.4.2",
"ionic-plugin-keyboard": "^2.2.1",
"ionicons": "3.0.0",
"is": "file:node_modules/is",
"rxjs": "5.4.0",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.12"
},
"devDependencies": {
"@ionic/app-scripts": "1.3.7",
"@ionic/cli-plugin-cordova": "1.4.1",
"@ionic/cli-plugin-ionic-angular": "1.3.1",
"typescript": "2.3.3"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-console": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-whitelist": {},
"ionic-plugin-keyboard": {},
"com.airwatch.awsdkplugin": {}
},
"platforms": [
"android",
"ios"
]
}
}
我尝试更改每个人的读写权限,但没有运气。
答案 0 :(得分:1)
这是一个递归依赖项(is
依赖项指向node_modules/is
,这也是安装is
依赖项本身的地方):
"is": "file:node_modules/is"
如果您要安装is
包裹this one),请从package.json
删除该行并正确安装:
npm i is --save
答案 1 :(得分:1)
如果您使用的是Mac或任何基于Unix的系统,请尝试运行 再次以root / Administrator身份访问命令。
sudo npm install
答案 2 :(得分:0)
sudo npm install --global yarn