引言
我试着运行rails-react-boilerplate,一切都很好,但在安装结束时(bundle install,yarn install,rake db:create ..),用简单的webpack命令不起作用。在github仓库上有一个链接:rails-react-boilerplate。
错误
在这个命令npm run webpack之后,我得到了这个错误:
openssl config failed: error:02001003:system library:fopen:No such process
> rails-react-boilerplate@1.0.0 webpack D:\code\portfolio\liftProgress
> ./node_modules/webpack/bin/webpack.js --progress --colors
'.' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rails-react-boilerplate@1.0.0 webpack:
`./node_modules/webpack/bin/webp
ack.js --progress --colors`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the rails-react-boilerplate@1.0.0 webpack script.
npm ERR! This is probably not a problem with npm. There is likely additional
logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Derid\AppData\Roaming\npm-cache\_logs\2017-12-
30T07_27_37_
058Z-debug.log
openssl config failed: error:02001003:system library:fopen:No such process我认为主要问题是:
'.' is not recognized as an internal or external command,
operable program or batch file.。。但是我已经无计可施了。非常感谢您的指导和帮助!:)
发布于 2017-12-30 17:57:55
这是一个Windows问题,您可以尝试在package.json文件的实际命令中省略./。
实际上,在做了一些研究之后,包括节点可执行文件应该可以跨平台工作:
"webpack": "node node_modules/webpack/bin/webpack.js --progress --colors",
https://stackoverflow.com/questions/48032143
复制相似问题