node.js - NPM : checkPermissions Missing write access to/. ../node_modules/is

标签 node.js npm

每次在我的项目上运行 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 文件夹中名为“is”的快捷方式文件后,问题得到解决。但在一次成功的 npm 安装运行后,它会再次重新生成。

enter image description here

以下是我的 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"
        ]
    }
}

我尝试更改每个人的读写权限,但没有成功。

最佳答案

如果您使用的是 mac 或任何基于 unix 的系统,请尝试运行 再次以 root/Administrator 身份执行命令。

sudo npm install

关于node.js - NPM : checkPermissions Missing write access to/. ../node_modules/is,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45106627/

相关文章:

javascript - 如果不使用 bodyParser,您将如何访问表单数据?

node.js - Node Async/Await 不起作用,需要实现回调

javascript - 使用 kafka-node 创建的消费者和生产者无法连接到 kafka 的工作实例

node.js - Electron : HellowWorld application is not starting

javascript - 更新 npm 包后出现 "SyntaxError: Unexpected token '/' in...index.ejs while compiling ejs"错误

javascript - 以逗号分隔的输出数组,用 querySelector

node.js - 使用 npm 运行 bash 脚本

node.js - 升级npm版本时出现问题

javascript - 如何按时间顺序运行 Mocha 测试?

node.js - watch 不会刷新文件更改页面( express 网站)