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

Error installing NPM requirements #17

Open
fsecada01 opened this issue Dec 13, 2019 · 2 comments
Open

Error installing NPM requirements #17

fsecada01 opened this issue Dec 13, 2019 · 2 comments

Comments

@fsecada01
Copy link

It seems likely that one of the requirements via the identified command list from DEF_NODE_PACKAGES_REQUIRED is faulty. I got the following printout when trying to run npm directly from my chosen node modules directory.

(main) C:\dev\Django_Projects\RankedJobs\main\src\frontend>npm  install  [email protected]  [email protected]  [email protected]  [email protected]  [email protected]  [email protected]  [email protected]  [email protected]  [email protected]  [email protected]  [email protected]  [email protected]  [email protected]  [email protected]  [email protected]
npm WARN deprecated [email protected]: Use UnCSS through gulp-postcss instead.
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: this package is now deprecated
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
npm WARN deprecated [email protected]: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated [email protected]: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).

> [email protected] install C:\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\phantomjs-prebuilt
> node install.js

PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-windows.zip
Saving to D:\Users\mrbub\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip
Receiving...
  [===================================-----] 88%
Received 17767K total.
Extracting zip contents
Removing D:\Users\mrbub\OneDrive\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\phantomjs-prebuilt\lib\phantom
Copying extracted folder D:\Users\mrbub\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip-extract-1576262059004\phantomjs-2.1.1-windows -> D:\Users\mrbub\OneDrive\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\phantomjs-prebuilt\lib\phantom
Writing location.js file
Done. Phantomjs binary available at D:\Users\mrbub\OneDrive\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs.exe

> [email protected] install C:\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\gulp-sass\node_modules\node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-72_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-72_binding.node":

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
      try setting a proxy via HTTP_PROXY, e.g.

      export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

      npm config set proxy http://example.com:8080

> [email protected] install C:\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.9.3/win32-x64-72_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.9.3/win32-x64-72_binding.node":

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
      try setting a proxy via HTTP_PROXY, e.g.

      export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

      npm config set proxy http://example.com:8080

> [email protected] postinstall C:\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\gifsicle
> node lib/install.js

  √ gifsicle pre-build test passed successfully

> [email protected] postinstall C:\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\jpegtran-bin
> node lib/install.js

  √ jpegtran pre-build test passed successfully

> [email protected] postinstall C:\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\optipng-bin
> node lib/install.js

  √ optipng pre-build test passed successfully

> [email protected] postinstall C:\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\gulp-sass\node_modules\node-sass
> node scripts/build.js

Building: C:\Languages\NodeJs\node.exe D:\Users\mrbub\OneDrive\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli   'C:\\Languages\\NodeJs\\node.exe',
gyp verb cli   'D:\\Users\\mrbub\\OneDrive\\dev\\Django_Projects\\RankedJobs\\main\\src\\frontend\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library='
gyp verb cli ]
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "D:\Users\mrbub\.windows-build-tools\python27\python.exe" in the PATH
gyp verb `which` failed Error: not found: D:\Users\mrbub\.windows-build-tools\python27\python.exe
gyp verb `which` failed     at getNotFoundError (D:\Users\mrbub\OneDrive\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (D:\Users\mrbub\OneDrive\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\which\which.js:68:19)
gyp verb `which` failed     at E (D:\Users\mrbub\OneDrive\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\which\which.js:80:29)
gyp verb `which` failed     at D:\Users\mrbub\OneDrive\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\which\which.js:89:16
gyp verb `which` failed     at D:\Users\mrbub\OneDrive\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\isexe\index.js:42:5
gyp verb `which` failed     at D:\Users\mrbub\OneDrive\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\isexe\windows.js:36:5
gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:169:21)
gyp verb `which` failed  D:\Users\mrbub\.windows-build-tools\python27\python.exe Error: not found: D:\Users\mrbub\.windows-build-tools\python27\python.exe
gyp verb `which` failed     at getNotFoundError (D:\Users\mrbub\OneDrive\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (D:\Users\mrbub\OneDrive\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\which\which.js:68:19)
gyp verb `which` failed     at E (D:\Users\mrbub\OneDrive\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\which\which.js:80:29)
gyp verb `which` failed     at D:\Users\mrbub\OneDrive\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\which\which.js:89:16
gyp verb `which` failed     at D:\Users\mrbub\OneDrive\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\isexe\index.js:42:5
gyp verb `which` failed     at D:\Users\mrbub\OneDrive\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\isexe\windows.js:36:5
gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:169:21) {
gyp verb `which` failed   stack: 'Error: not found: D:\\Users\\mrbub\\.windows-build-tools\\python27\\python.exe\n' +
gyp verb `which` failed     '    at getNotFoundError (D:\\Users\\mrbub\\OneDrive\\dev\\Django_Projects\\RankedJobs\\main\\src\\frontend\\node_modules\\which\\which.js:13:12)\n' +
gyp verb `which` failed     '    at F (D:\\Users\\mrbub\\OneDrive\\dev\\Django_Projects\\RankedJobs\\main\\src\\frontend\\node_modules\\which\\which.js:68:19)\n' +
gyp verb `which` failed     '    at E (D:\\Users\\mrbub\\OneDrive\\dev\\Django_Projects\\RankedJobs\\main\\src\\frontend\\node_modules\\which\\which.js:80:29)\n' +
gyp verb `which` failed     '    at D:\\Users\\mrbub\\OneDrive\\dev\\Django_Projects\\RankedJobs\\main\\src\\frontend\\node_modules\\which\\which.js:89:16\n' +
gyp verb `which` failed     '    at D:\\Users\\mrbub\\OneDrive\\dev\\Django_Projects\\RankedJobs\\main\\src\\frontend\\node_modules\\isexe\\index.js:42:5\n' +
gyp verb `which` failed     '    at D:\\Users\\mrbub\\OneDrive\\dev\\Django_Projects\\RankedJobs\\main\\src\\frontend\\node_modules\\isexe\\windows.js:36:5\n' +
gyp verb `which` failed     '    at FSReqCallback.oncomplete (fs.js:169:21)',
gyp verb `which` failed   code: 'ENOENT'
gyp verb `which` failed }
gyp verb could not find "D:\Users\mrbub\.windows-build-tools\python27\python.exe". checking python launcher
gyp verb could not find "D:\Users\mrbub\.windows-build-tools\python27\python.exe". guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "D:\Users\mrbub\.windows-build-tools\python27\python.exe", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (D:\Users\mrbub\OneDrive\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack     at PythonFinder.<anonymous> (D:\Users\mrbub\OneDrive\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack     at callback (D:\Users\mrbub\OneDrive\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\graceful-fs\polyfills.js:295:20)
gyp ERR! stack     at FSReqCallback.oncomplete (fs.js:169:21)
gyp ERR! System Windows_NT 10.0.19037
gyp ERR! command "C:\\Languages\\NodeJs\\node.exe" "D:\\Users\\mrbub\\OneDrive\\dev\\Django_Projects\\RankedJobs\\main\\src\\frontend\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\gulp-sass\node_modules\node-sass
gyp ERR! node -v v12.11.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): EPERM: operation not permitted, rmdir 'C:\dev\Django_Projects\RankedJobs\main\src\frontend\node_modules\fsevents'
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=0.10.0 <7"} (current: {"node":"12.11.1","npm":"6.12.0"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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!     D:\Users\mrbub\AppData\Roaming\npm-cache\_logs\2019-12-13T18_34_28_692Z-debug.log
@fsecada01
Copy link
Author

fsecada01 commented Dec 16, 2019

As I'm digging through this more, it seems like there are three issues:

  1. the subprocess run command needs the shell=True argument to run the list of line command components.

  2. The NPM modules are out of date/non-existent

  3. Foundation Email requires Node v10; newer versions (like 12) are not compatible with the CLI.

Is it possible to build nvm or anything into this module?

@fsecada01
Copy link
Author

The workaround I have right now is to install and work with Foundation Email via the Sass and node.js method directly. I had to utilize npx to run Node as v10. These were the commands that ultimately worked for me.

npm install -g foundation-cli
npx -p node@10 foundation new --framework emails
ren at the prompt, write in the name of the project. For this demo, I chose Emails
cd Emails
npx -p node@10 foundation watch

Trying to install foundation emails directly w/o Node v.10 causes issues with certain previously-native packages like primordial. This seems like the best workaround.

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

1 participant