jgudo / ecommerce-react

eCommerce web application using React, Redux, Redux-Saga, Firebase and SASS.
https://salinaka-ecommerce.web.app
Apache License 2.0
1.17k stars 642 forks source link

"npm install" issue in ubuntu #42

Closed byteblock-labs closed 3 years ago

byteblock-labs commented 3 years ago

st package, see https://github.com/request/request/issues/3142

node-sass@4.14.1 install /root/ecommerce-react/node_modules/node-sass node scripts/install.js

internal/modules/cjs/loader.js:883 throw err; ^

Error: Cannot find module '/root/ecommerce-react/node_modules/node-sass/scripts/install.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15) at Function.Module._load (internal/modules/cjs/loader.js:725:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^2.1.2 (node_modules/jest-haste-map/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN ecommerce-react@1.2.0 No repository field.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@4.14.1 install: node scripts/install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@4.14.1 install 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! /root/.npm/_logs/2021-04-17T04_22_41_515Z-debug.log

how do i solve it?

jgudo commented 3 years ago

Run npm install with --unsafe-perm flag solves the issue. npm install --unsafe-perm