internal/fs 在 maven 中构建时出错
internal/fs error when building in maven
当我尝试使用
构建项目时出现以下错误
mvn clean install
最初它要求我安装 npm 和 gulp 我安装了但现在我不知道如何修复以下错误:
[INFO]
[INFO] --- exec-maven-plugin:1.4.0:exec (build-javascript) @ webapp ---
module.js:472
throw err;
^
Error: Cannot find module 'internal/fs'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at evalmachine.<anonymous>:18:20
at Object.<anonymous> (C:\Users\hisg417\git\myproject\webapp\node_modules\gulp-bower\node_modules\bower\lib\node_modules\graceful-fs\fs.js:11:1)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
我已经搜索过此错误,但找不到解决方案。
以下是我的环境的详细信息:
Windows7
我 运行 这些命令针对我正在尝试构建的项目并且
我明白了
npm 4.5.0
node 7.0.0
gulp local 3.9.1
cli 3.9.1
有什么办法可以解决吗?
PS:谢谢,我认为更改版本可以修复它,但我现在收到此错误
Error in plugin 'sass'
Message:
src\main\webapp\designers\sass\mh-objects.scss
Error: File to import not found or unreadable: bootstrap
Parent style sheet: C:/Users/username/git/myproject/webapp/src/main/webapp/designers/sass/mh-objects.scss
on line 4 of src/main/webapp/designers/sass/mh-objects.scss
>> @import "bootstrap";
^
我已经安装了 bootstrap-sass 和 gulp-sass(我认为这是问题所在),但错误仍然存在。有什么建议吗?
- 如果可以,请尝试将
graceful-fs
升级到版本 4
- 尝试将
node
降级到最新的 6.x 版本,因为已知版本 7 与 graceful-fs
有问题。
您可能需要删除 node_modules
文件夹才能安装不同的版本。
当我尝试使用
构建项目时出现以下错误mvn clean install
最初它要求我安装 npm 和 gulp 我安装了但现在我不知道如何修复以下错误:
[INFO]
[INFO] --- exec-maven-plugin:1.4.0:exec (build-javascript) @ webapp ---
module.js:472
throw err;
^
Error: Cannot find module 'internal/fs'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at evalmachine.<anonymous>:18:20
at Object.<anonymous> (C:\Users\hisg417\git\myproject\webapp\node_modules\gulp-bower\node_modules\bower\lib\node_modules\graceful-fs\fs.js:11:1)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
我已经搜索过此错误,但找不到解决方案。 以下是我的环境的详细信息: Windows7
我 运行 这些命令针对我正在尝试构建的项目并且
我明白了
npm 4.5.0
node 7.0.0
gulp local 3.9.1
cli 3.9.1
有什么办法可以解决吗?
PS:谢谢,我认为更改版本可以修复它,但我现在收到此错误
Error in plugin 'sass'
Message:
src\main\webapp\designers\sass\mh-objects.scss
Error: File to import not found or unreadable: bootstrap
Parent style sheet: C:/Users/username/git/myproject/webapp/src/main/webapp/designers/sass/mh-objects.scss
on line 4 of src/main/webapp/designers/sass/mh-objects.scss
>> @import "bootstrap";
^
我已经安装了 bootstrap-sass 和 gulp-sass(我认为这是问题所在),但错误仍然存在。有什么建议吗?
- 如果可以,请尝试将
graceful-fs
升级到版本 4 - 尝试将
node
降级到最新的 6.x 版本,因为已知版本 7 与graceful-fs
有问题。
您可能需要删除 node_modules
文件夹才能安装不同的版本。