Skip to content

npm install can fail on windows #65

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

Closed
RobotOptimist opened this issue Jul 29, 2019 · 4 comments
Closed

npm install can fail on windows #65

RobotOptimist opened this issue Jul 29, 2019 · 4 comments

Comments

@RobotOptimist
Copy link

npm install can fail for yall.js because of this step:

rm -rf ./dist

rm may or may not be a valid command on windows depending on the console used

I ran it from a Powershell console and even though rm is aliased it still failed at that command with this error message:

 yall-js@3.1.4 postinstall C:\Code\..\node_modules\yall-js
> npm run build


> yall-js@3.1.4 build C:\Code\..\node_modules\yall-js
> npm run clean && npx rollup -c


> yall-js@3.1.4 clean C:\Code\..\node_modules\yall-js
> rm -rf ./dist

'rm' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! yall-js@3.1.4 clean: `rm -rf ./dist`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the yall-js@3.1.4 clean script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\..\AppData\Roaming\npm-cache\_logs\2019-07-29T15_06_46_005Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! yall-js@3.1.4 build: `npm run clean && npx rollup -c`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the yall-js@3.1.4 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\..\AppData\Roaming\npm-cache\_logs\2019-07-29T15_06_46_044Z-debug.log
npm WARN rollback Rolling back readable-stream@2.3.6 failed (this is probably harmless): EPERM: operation not permitted, lstat 'C:\Code\..\node_modules\fsevents\node_modules'
npm WARN assets No description
npm WARN assets No repository field.
npm WARN assets No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! yall-js@3.1.4 postinstall: `npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the yall-js@3.1.4 postinstall 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:\..\AppData\Roaming\npm-cache\_logs\2019-07-29T15_06_46_577Z-debug.log

This issue can be avoided by running this command:

npm install --ignore-scripts

However, the npm script should probably be tweaked to avoid the error. Perhaps the dist folder should be allowed to live?

@meneerprins
Copy link

I have the same issue on mac os

@malchata
Copy link
Owner

Oof. I'm sorry about this. It was a total oversight. I'll have a new version publish soon to fix this.

@RobotOptimist
Copy link
Author

@malchata Thank you! And thank you for this library, I really like it.

@malchata
Copy link
Owner

No worries. Sorry for the inconvenience. Version 3.1.5 is now available from npm, so upgrade at your leisure. :)

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

3 participants