Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error on Windows 10 #109

Closed
helio-frota opened this issue Nov 10, 2017 · 7 comments
Closed

Build error on Windows 10 #109

helio-frota opened this issue Nov 10, 2017 · 7 comments
Assignees

Comments

@helio-frota
Copy link
Member

Node.js Version:
8.9.0
Operating System:
Windows 10
Steps to Produce Error:
npm it

$ npm it
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EINTEGRITY: sha512-TWILfEnvO7I8mFe35d98F6T5fbLaEtbFTG/lxWvid8qDfFTxt19EBijWmB4j3+Hoh5TfHE2faWs73ua+EphuBA== integrity checksum failed when using sha512: wanted sha512-TWILfEnvO7I8mFe35d98F6T5fbLaEtbFTG/lxWvid8qDfFTxt19EBijWmB4j3+Hoh5TfHE2faWs73ua+EphuBA== but got sha1-9qn+xBzFCh3lD6M2A6tYCZH2Bo4=. (23892 bytes)
npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.

> electron@1.6.11 postinstall C:\Users\hf\Desktop\dev\opossum\node_modules\electron
> node install.js

npm WARN prepublish-on-install As of npm@5, `prepublish` scripts are deprecated.
npm WARN prepublish-on-install Use `prepare` for build steps and `prepublishOnly` for upload-only.
npm WARN prepublish-on-install See the deprecation note in `npm help scripts` for more information.

> opossum@1.3.0 prepublish C:\Users\hf\Desktop\dev\opossum
> nsp check && npm run build:browser

(+) No known vulnerabilities found

> opossum@1.3.0 build:browser C:\Users\hf\Desktop\dev\opossum
> browserify index.js lib/*.js > dist/opossum.js

Error: Cannot find module 'C:\Users\hf\Desktop\dev\opossum\lib\*.js' from 'C:\Users\hf\Desktop\dev\opossum'
    at C:\Users\hf\Desktop\dev\opossum\node_modules\resolve\lib\async.js:55:21
    at load (C:\Users\hf\Desktop\dev\opossum\node_modules\resolve\lib\async.js:69:43)
    at onex (C:\Users\hf\Desktop\dev\opossum\node_modules\resolve\lib\async.js:92:31)
    at C:\Users\hf\Desktop\dev\opossum\node_modules\resolve\lib\async.js:22:47
    at FSReqWrap.oncomplete (fs.js:152:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! opossum@1.3.0 build:browser: `browserify index.js lib/*.js > dist/opossum.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the opossum@1.3.0 build:browser 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\hf\AppData\Roaming\npm-cache\_logs\2017-11-10T10_54_48_577Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! opossum@1.3.0 prepublish: `nsp check && npm run build:browser`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the opossum@1.3.0 prepublish 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\hf\AppData\Roaming\npm-cache\_logs\2017-11-10T10_54_49_041Z-debug.log

Related to bucharest-gold/entente#179

@lance
Copy link
Member

lance commented Nov 15, 2017

Is this the case for all versions of node? Seems odd.

@helio-frota
Copy link
Member Author

@lance I think this was my fault.
opossum uses make, so this is not prepared to run the build with npm it.
I'm installing make for windows to check again.

@helio-frota
Copy link
Member Author

no, it still failing with make:

hf@DESKTOP-137Q3FQ MINGW64 ~/Desktop/dev/opossum (master)
$ make
npm run lint

> opossum@1.3.0 lint C:\Users\hf\Desktop\dev\opossum
> eslint test/*.js index.js lib/*.js

npm run build:browser

> opossum@1.3.0 build:browser C:\Users\hf\Desktop\dev\opossum
> browserify index.js lib/*.js > dist/opossum.js

Error: Cannot find module 'C:\Users\hf\Desktop\dev\opossum\lib\*.js' from 'C:\Users\hf\Desktop\dev\opossum'
    at C:\Users\hf\Desktop\dev\opossum\node_modules\resolve\lib\async.js:55:21
    at load (C:\Users\hf\Desktop\dev\opossum\node_modules\resolve\lib\async.js:69:43)
    at onex (C:\Users\hf\Desktop\dev\opossum\node_modules\resolve\lib\async.js:92:31)
    at C:\Users\hf\Desktop\dev\opossum\node_modules\resolve\lib\async.js:22:47
    at FSReqWrap.oncomplete (fs.js:152:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! opossum@1.3.0 build:browser: `browserify index.js lib/*.js > dist/opossum.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the opossum@1.3.0 build:browser 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\hf\AppData\Roaming\npm-cache\_logs\2017-11-23T14_12_29_165Z-debug.log
Makefile:2: recipe for target 'ci' failed
make: *** [ci] Error 1

hf@DESKTOP-137Q3FQ MINGW64 ~/Desktop/dev/opossum (master)
$ make ci
npm run lint

> opossum@1.3.0 lint C:\Users\hf\Desktop\dev\opossum
> eslint test/*.js index.js lib/*.js

npm run build:browser

> opossum@1.3.0 build:browser C:\Users\hf\Desktop\dev\opossum
> browserify index.js lib/*.js > dist/opossum.js

Error: Cannot find module 'C:\Users\hf\Desktop\dev\opossum\lib\*.js' from 'C:\Us                                                                                                                                                                                               ers\hf\Desktop\dev\opossum'
    at C:\Users\hf\Desktop\dev\opossum\node_modules\resolve\lib\async.js:55:21
    at load (C:\Users\hf\Desktop\dev\opossum\node_modules\resolve\lib\async.js:6                                                                                                                                                                                               9:43)
    at onex (C:\Users\hf\Desktop\dev\opossum\node_modules\resolve\lib\async.js:9                                                                                                                                                                                               2:31)
    at C:\Users\hf\Desktop\dev\opossum\node_modules\resolve\lib\async.js:22:47
    at FSReqWrap.oncomplete (fs.js:152:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! opossum@1.3.0 build:browser: `browserify index.js lib/*.js > dist/oposs                                                                                                                                                                                               um.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the opossum@1.3.0 build:browser script.
npm ERR! This is probably not a problem with npm. There is likely additional log                                                                                                                                                                                               ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\hf\AppData\Roaming\npm-cache\_logs\2017-11-23T14_13_09_649                                                                                                                                                                                               Z-debug.log
Makefile:2: recipe for target 'ci' failed
make: *** [ci] Error 1

@helio-frota
Copy link
Member Author

seems to be a problem with browserify or browserify-usage :
because it works when using browserify index.js lib/circuit.js instead browserify index.js lib/*.js

and eslint works fine using wildcards

hf@DESKTOP-137Q3FQ MINGW64 ~/Desktop/dev/opossum (master)
$ npm install
npm WARN prepublish-on-install As of npm@5, `prepublish` scripts are deprecated.
npm WARN prepublish-on-install Use `prepare` for build steps and `prepublishOnly` for upload-only.
npm WARN prepublish-on-install See the deprecation note in `npm help scripts` for more information.

> opossum@1.3.0 prepublish C:\Users\hf\Desktop\dev\opossum
> nsp check && npm run build:browser

(+) No known vulnerabilities found

> opossum@1.3.0 build:browser C:\Users\hf\Desktop\dev\opossum
> browserify index.js lib/circuit.js > dist/opossum.js

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 115 packages in 17.579s

@helio-frota
Copy link
Member Author

seems to be the same issue:
browserify/browserify#1170

@helio-frota
Copy link
Member Author

also to avoid:

hf@DESKTOP-137Q3FQ MINGW64 ~/Desktop/dev/opossum (pr)
$ npm install
npm ERR! path C:\Users\hf\Desktop\dev\opossum\node_modules\fsevents\node_modules
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall scandir
npm ERR! Error: EPERM: operation not permitted, scandir 'C:\Users\hf\Desktop\dev\opossum\node_modules\fsevents\node_modules'
npm ERR!  { Error: EPERM: operation not permitted, scandir 'C:\Users\hf\Desktop\dev\opossum\node_modules\fsevents\node_modules'
npm ERR!   stack: 'Error: EPERM: operation not permitted, scandir \'C:\\Users\\hf\\Desktop\\dev\\opossum\\node_modules\\fsevents\\node_modules\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'scandir',
npm ERR!   path: 'C:\\Users\\hf\\Desktop\\dev\\opossum\\node_modules\\fsevents\\node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\hf\AppData\Roaming\npm-cache\_logs\2017-11-23T15_02_19_626Z-debug.log

we need to run like this: npm install --force

@helio-frota
Copy link
Member Author

closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants