iview-weapp icon indicating copy to clipboard operation
iview-weapp copied to clipboard

when i npm install

Open Fnckerpoi opened this issue 6 years ago • 5 comments

[email protected] prepare C:\Users\Administrator\Desktop\iview-weapp

npm run build

[email protected] build C:\Users\Administrator\Desktop\iview-weapp gulp --gulpfile build/build-prod.js

[12:51:06] Working directory changed to ~\Desktop\iview-weapp\build fs.js:25 'use strict'; ^

ReferenceError: internalBinding is not defined at fs.js:25:1 at req_ (C:\Users\Administrator\Desktop\iview-weapp\node_modules\natives\index.js:137:5) at Object.req [as require] (C:\Users\Administrator\Desktop\iview-weapp\node_modules\natives\index.js:54:10) at Object. (C:\Users\Administrator\Desktop\iview-weapp\node_modules\vinyl-fs\node_modules\graceful-fs\fs.js:1:99) at Module._compile (internal/modules/cjs/loader.js:721:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10) at Module.load (internal/modules/cjs/loader.js:620:32) at tryModuleLoad (internal/modules/cjs/loader.js:560:12) at Function.Module._load (internal/modules/cjs/loader.js:552:3) at Module.require (internal/modules/cjs/loader.js:657:17) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] build: gulp --gulpfile build/build-prod.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build 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\Administrator\AppData\Roaming\npm-cache_logs\2019-01-20T04_51_06_420Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] prepare: npm run build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] prepare 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\Administrator\AppData\Roaming\npm-cache_logs\2019-01-20T04_51_06_502Z-debug.log

Fnckerpoi avatar Jan 20 '19 04:01 Fnckerpoi

我也是同样错误,楼主有解决了吗

MulderLiu avatar Feb 13 '19 09:02 MulderLiu

[email protected] prepare C:\Users\Administrator\Desktop\iview-weapp

npm run build

[email protected] build C:\Users\Administrator\Desktop\iview-weapp gulp --gulpfile build/build-prod.js

[12:51:06] Working directory changed to ~\Desktop\iview-weapp\build fs.js:25 'use strict'; ^

ReferenceError: internalBinding is not defined at fs.js:25:1 at req_ (C:\Users\Administrator\Desktop\iview-weapp\node_modules\natives\index.js:137:5) at Object.req [as require] (C:\Users\Administrator\Desktop\iview-weapp\node_modules\natives\index.js:54:10) at Object. (C:\Users\Administrator\Desktop\iview-weapp\node_modules\vinyl-fs\node_modules\graceful-fs\fs.js:1:99) at Module._compile (internal/modules/cjs/loader.js:721:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10) at Module.load (internal/modules/cjs/loader.js:620:32) at tryModuleLoad (internal/modules/cjs/loader.js:560:12) at Function.Module._load (internal/modules/cjs/loader.js:552:3) at Module.require (internal/modules/cjs/loader.js:657:17) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] build: gulp --gulpfile build/build-prod.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build 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\Administrator\AppData\Roaming\npm-cache_logs\2019-01-20T04_51_06_420Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] prepare: npm run build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] prepare 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\Administrator\AppData\Roaming\npm-cache_logs\2019-01-20T04_51_06_502Z-debug.log

你需要修改 natives 版本 试试 npm install [email protected]

xiaodongjava avatar Mar 19 '19 03:03 xiaodongjava

我也是同样错误,楼主有解决了吗

你需要修改 natives 版本 试试 npm install [email protected] 然后 再运行 npm install

xiaodongjava avatar Mar 19 '19 03:03 xiaodongjava

我也是同样错误,楼主有解决了吗

你需要修改 natives 版本 试试 npm install [email protected] 然后 再运行 npm install

这个方法可以

CarGod avatar Mar 25 '19 09:03 CarGod

还有其他方法吗,搞了几天都没找到答案

OneFreeCoder avatar Mar 26 '20 03:03 OneFreeCoder