OpenJSCAD.org: When I build the web,I got the error.

E:\Data\Projects\Git\OpenJSCAD>npm run build-web

> @jscad/openjscad@1.0.1 build-web E:\Data\Projects\Git\OpenJSCAD
> browserify src/ui/index.js -o dist/index.js -t [babelify browserify minifyify]

Error: Cannot find module '../../../../_is-buffer@1.1.5@is-buffer/index.js' from 'E:\Data\Projects\Git\OpenJSCAD\node_modules\_core-util-is@1.0.2@core-util-is\lib'
    at E:\Data\Projects\Git\OpenJSCAD\node_modules\_resolve@1.1.7@resolve\lib\async.js:55:21
    at load (E:\Data\Projects\Git\OpenJSCAD\node_modules\_resolve@1.1.7@resolve\lib\async.js:69:43)
    at onex (E:\Data\Projects\Git\OpenJSCAD\node_modules\_resolve@1.1.7@resolve\lib\async.js:92:31)
    at E:\Data\Projects\Git\OpenJSCAD\node_modules\_resolve@1.1.7@resolve\lib\async.js:22:47
    at FSReqWrap.oncomplete (fs.js:152:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @jscad/openjscad@1.0.1 build-web: `browserify src/ui/index.js -o dist/index.js -t [babelify browserify minifyify]`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @jscad/openjscad@1.0.1 build-web 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!     D:\Soft\nodejs\_logs\2017-08-09T07_16_15_864Z-debug.log

I have installed all node modules that the project need. It seems like that the browserify got a wrong relative path.

The OS of my computer is Windows 10, the version of nodejs is 8.2.1 .

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

@zhaochy1990 Did you use the cnpm of taobao? Just use npm to install modules instead of cnpm. I found that the cnpm may has a bug which will cause this problem!