npminstall icon indicating copy to clipboard operation
npminstall copied to clipboard

electron-react-boilerplate install fail

Open afc163 opened this issue 8 years ago • 3 comments

https://github.com/chentsulin/electron-react-boilerplate

Unhandled rejection Error: Invalid package name "_fsevents": name cannot start with an underscore
    at invalidPackageName (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:71:15)
    at Result.setName (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:107:11)
    at new Result (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:96:23)
    at resolve (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:45:15)
    at npa (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:39:10)
    at /usr/local/lib/node_modules/npm/lib/ls.js:65:17
    at Array.map (<anonymous>)
    at ls.fromTree (/usr/local/lib/node_modules/npm/lib/ls.js:61:17)
    at /usr/local/lib/node_modules/npm/lib/ls.js:42:7
    at /usr/local/lib/node_modules/npm/lib/install/read-shrinkwrap.js:55:14
    at /usr/local/lib/node_modules/npm/node_modules/iferr/index.js:13:50
    at BB.join.then (/usr/local/lib/node_modules/npm/lib/install/read-shrinkwrap.js:41:16)
    at tryCatcher (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)
npm ERR! cb() never called!

afc163 avatar Jan 14 '18 10:01 afc163

_fsevents 模块名称太奇怪了。

fengmk2 avatar Feb 11 '18 06:02 fengmk2

它的 postinstall 执行了一个检查。。。

node -r babel-register internals/scripts/CheckNativeDep.js
npm ls [email protected]@fsevents [email protected]@node-sass fsevents node-sass --json

fengmk2 avatar Feb 11 '18 06:02 fengmk2

目前这个报错不影响安装,只是没有做 native 检查

fengmk2 avatar Feb 11 '18 06:02 fengmk2