**这里要注意的是,当我同时(使用shell)运行多个npm install命令时,会发生此错误。 **
这让我感到沮丧,我也找不到在线帮助。
npm安装随机失败。我有节点版本8和npm 6 +
这是完整的堆栈跟踪:
> node-sass@4.9.4 install /data/project/uiv2/node_modules/node-sass
> node scripts/install.js
npm WARN deprecated typings@1.5.0: Typings is deprecated in favor of NPM @types -- see README for more information
npm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated gulp-util@3.0.7: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated hoek@2.16.3: The major version is no longer supported. Please update to 4.x or newer
module.js:550
throw err;
^
Error: Cannot find module 'inherits'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/data/devhub/uiv2/node_modules/glob/glob.js:47:16)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.2 (node_modules/chokidar/node_modules/fsevents):
我们将不胜感激。