【发布时间】:2016-06-21 05:50:20
【问题描述】:
我尝试使用“npm update”和“ncu”,但收到以下警告和错误,如下所示:
在控制台:
npm WARN ENOENT ENOENT: no such file or directory, open 'Proj_Dir/node_modules/grunt-legacy-log/package.json'
npm WARN ENOENT ENOENT: no such file or directory, open 'Proj_Dir/node_modules/grunt-legacy-log-utils/package.json'
npm ERR! enoent ENOENT: no such file or directory, rename 'Proj_Dir/node_modules/sails-generate-frontend/node_modules/lodash' -> 'Proj_Dir/node_modules/grunt-contrib-less/node_modules/lodash'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! Proj_Dir/npm WARN ENOENT ENOENT: no such file or directory, open 'Proj_Dir/node_modules/grunt-legacy-log/package.json'
npm WARN ENOENT ENOENT: no such file or directory, open 'Proj_Dir/node_modules/grunt-legacy-log-utils/package.json'
npm ERR! enoent ENOENT: no such file or directory, rename 'Proj_Dir/node_modules/sails-generate-frontend/node_modules/lodash' -> 'Proj_Dir/node_modules/grunt-contrib-less/node_modules/lodash'
npm ERR! Please include the following file with any support request:
npm ERR! Proj_Dir/npm-debug.log
npm-debug.log
-------------
37224 warn ENOENT ENOENT: no such file or directory, open 'Proj_Dir/node_modules/grunt-legacy-log/package.json'
37225 warn ENOENT ENOENT: no such file or directory, open 'Proj_Dir/node_modules/grunt-legacy-log-utils/package.json'
37226 verbose stack Error: ENOENT: no such file or directory, rename 'Proj_Dir/node_modules/sails-generate-frontend/node_modules/lodash' -> 'Proj_Dir/node_modules/grunt-contrib-less/node_modules/lodash'
37232 error path Proj_Dir/node_modules/sails-generate-frontend/node_modules/lodash
37236 error enoent ENOENT: no such file or directory, rename 'Proj_Dir/node_modules/sails-generate-frontend/node_modules/lodash' -> 'Proj_Dir/node_modules/grunt-contrib-less/node_modules/lodash'
【问题讨论】:
-
未清除,你在问什么。
-
我在控制台的sails项目目录中使用'npm update'命令,但这给了我上面提到的警告和错误。现在我无法解除我的风帆申请。