NPM install failed - Help needed

Dear All,
During npm install I am facing below error. Could you please help to resolve it.

(base) USER-no-MacBook-Pro:mflix-js user$ sudo npm install
Password:

weak-napi@1.0.3 install /Users/user/Contents/JS/MongoDB-Study/mflix-js/node_modules/weak-napi
node-gyp rebuild

gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/Users/user/Contents/JS/MongoDB-Study/mflix-js/node_m
odules/weak-napi/build’
gyp ERR! System Darwin 19.0.0
gyp ERR! command “/usr/local/Cellar/node/12.12.0/bin/node” “/usr/local/lib/node_modules/node-gyp/bin/node-gyp
.js” “rebuild”
gyp ERR! cwd /Users/user/Contents/JS/MongoDB-Study/mflix-js/node_modules/weak-napi
gyp ERR! node -v v12.12.0
gyp ERR! node-gyp -v v6.0.0
gyp ERR! not ok
npm WARN eslint-config-react-app@2.1.0 requires a peer of babel-eslint@^7.2.3 but none is installed. You must
install peer dependencies yourself.
npm WARN eslint-config-react-app@2.1.0 requires a peer of eslint-plugin-jsx-a11y@^5.1.1 but none is installed
. You must install peer dependencies yourself.
npm WARN server@1.0.0 No repository field.

npm ERR! Maximum call stack size exceeded

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/user/.npm/_logs/2019-10-29T21_12_22_857Z-debug.log
(base) USER-no-MacBook-Pro:mflix-js user$

Hi @Praveen_40109,

Its an expected error. Try running npm start and let me know if you have any issues.

Kanika

Hi Kanikasingla,

Thanks for the response. During npm start I am getting below error. Could you please help me to resolve this issue.

(base) USER-no-MacBook-Pro:mflix-js user$ npm start

server@1.0.0 start /Users/user/Contents/JS/MongoDB-Study/mflix-js
nodemon -L ./index.js

[nodemon] 1.19.1
[nodemon] to restart at any time, enter rs
[nodemon] watching: .
[nodemon] starting node ./index.js
internal/fs/utils.js:220
throw err;
^

Error: EACCES: permission denied, open ‘/Users/user/Contents/JS/MongoDB-Study/mflix-js/node_modules/.cache/@babel/register/.babel.7.5.5.development.json’
at Object.openSync (fs.js:440:3)
at Object.writeFileSync (fs.js:1265:35)
at save (/Users/user/Contents/JS/MongoDB-Study/mflix-js/node_modules/@babel/register/lib/cache.js:52:15)
at processTicksAndRejections (internal/process/task_queues.js:75:11) {
errno: -13,
syscall: ‘open’,
code: ‘EACCES’,
path: ‘/Users/user/Contents/JS/MongoDB-Study/mflix-js/node_modules/.cache/@babel/register/.babel.7.5.5.development.json’
}
[nodemon] app crashed - waiting for file changes before starting…

Hi @Praveen_40109,

Please check the following post by me:

Let me know if the issue still persists.

Kanika

Hi Kanikasingla,

Thanks for the response. Now I could launch the application. Thanks for the support.

1 Like

Hi @Praveen_40109,

Thats great, can you let us know what worked for you so that it can help other students?

Kanika

Hi Kanikasingla,

I have just used sudo then the app get launched wihtout any issue.

sudo npm start

Thanks,
Praveen

Hi,
Due to time constraint I could not completed the previous weeks tickets. Now I want to complete and submit today.
But it is not allowing me to submit. Is it not possible. Could you please help. Should I need to attend the course again to complete this. Kindly confirm.

Thanks,
Praveen

I am sorry we cannot do that. You can surely register for the next offering.

Kanika

Thanks for the response. I have registered for next course.

1 Like