I have a problem.
CPU ARMv7
node version : v10.14.1
npm version : 6.4.1
OS : Raspian
My GitHub with problem : https://github.com/marcdubois71450/marcdubois
root@www:~/marcdubois# npm install
npm WARN deprecated [email protected]: This version of react-dom/server contains a minor vulnerability. Please update react-dom to 16.2.1 or 16.4.2+. Learn more: cve-2018-6341
npm WARN deprecated [email protected]: This project is no longer maintained.
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
> [email protected] postinstall /root/marcdubois/node_modules/jss
> node -e "console.log('\u001b[35m\u001b[1mLove JSS? You can now support us on open collective:\u001b[22m\u001b[39m\n > \u001b[34mhttps://opencollective.com/jss/donate\u001b[0m')"
Love JSS? You can now support us on open collective:
> https://opencollective.com/jss/donate
> [email protected] postinstall /root/marcdubois/node_modules/nodemon
> node bin/postinstall || exit 0
internal/modules/cjs/loader.js:582
throw err;
^
Error: Cannot find module '/root/marcdubois/node_modules/nodemon/bin/postinstall'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] requires a peer of react@~16.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@~16.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@~16.0.0 || ~16.1.0 || ~16.2.0 || ~16.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@~16.0.0 || ~16.1.0 || ~16.2.0 || ~16.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@~16.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@~16.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^0.14.0 but none is installed. You must install peer dependencies yourself.
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":"linux","arch":"arm"})
added 1129 packages from 701 contributors and audited 14518 packages in 191.325s
found 1 low severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
My package.json :
{
"name": "marcdubois",
"version": "1.0.0",
"description": "Marc Dubois Website",
"main": "src/server/index.js",
"scripts": {
"build": "webpack --mode production",
"start": "npm run build && node src/server/index.js",
"client": "webpack-dev-server --mode development --devtool inline-source-map --hot",
"server": "nodemon src/server/index.js",
"dev": "concurrently \"npm run server\" \"npm run client\""
},
"author": "Marc Dubois",
"license": "ISC",
"dependencies": {
"express": "^4.16.3",
"express-http-to-https": "^1.1.4",
"express-https-redirect": "^1.0.0",
"ip": "^1.1.5",
"js-md5": "^0.7.3",
"md5": "^2.2.1",
"npm-font-open-sans": "^1.1.0",
"ra-data-simple-rest": "^2.4.2",
"react": "^16.6.3",
"react-burger-menu": "^2.5.4",
"react-dom": "^16.6.3",
"read-config": "^1.6.0",
"ssh2-client": "^1.3.2",
"terminal-in-react": "^4.3.0"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-proposal-export-default-from": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-eslint": "^10.0.0",
"babel-loader": "^8.0.0",
"clean-webpack-plugin": "^0.1.19",
"concurrently": "^4.0.0",
"css-loader": "^1.0.0",
"eslint": "^5.0.0",
"eslint-config-airbnb": "^17.0.0",
"eslint-plugin-import": "^2.11.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.7.0",
"file-loader": "^2.0.0",
"html-webpack-plugin": "^3.2.0",
"nodemon": "^1.17.3",
"react-admin": "^2.4.2",
"style-loader": "^0.23.0",
"uglifyjs-webpack-plugin": "^2.0.1",
"url-loader": "^1.0.1",
"webpack": "^4.5.0",
"webpack-cli": "^3.0.8",
"webpack-dev-server": "^3.1.3"
}
}
It cannot reproduce on my macOS:

Can you try to remove node_modules clearly and clean the cache, then try again ?
Yes, the problem is only on the platform I mentioned. It's a raspberry pi 3b.
I do not have a problem either running it on my mac.
I'm also experiencing this issue but with another file.
Context: Project is build using Maven and it's frontend plugin triggers the npm run build command.
Locally on my Mac, that command mvn clean package build the project successfully. But when the exact same process is done using our automated build tools (Bamboo triggers the maven command) on the server, I get the error below:
> vue-cli-service build
build 10-Jan-2019 14:17:28 [INFO]
build 10-Jan-2019 14:17:28 [ERROR] internal/modules/cjs/loader.js:582
build 10-Jan-2019 14:17:28 [ERROR] throw err;
build 10-Jan-2019 14:17:28 [ERROR] ^
build 10-Jan-2019 14:17:28 [ERROR]
build 10-Jan-2019 14:17:28 [ERROR] Error: Cannot find module '../package.json'
build 10-Jan-2019 14:17:28 [ERROR] at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
build 10-Jan-2019 14:17:28 [ERROR] at Function.Module._load (internal/modules/cjs/loader.js:506:25)
build 10-Jan-2019 14:17:28 [ERROR] at Module.require (internal/modules/cjs/loader.js:636:17)
build 10-Jan-2019 14:17:28 [ERROR] at require (internal/modules/cjs/helpers.js:20:18)
build 10-Jan-2019 14:17:28 [ERROR] at Object.<anonymous> (/data/bamboo-data/xml-data/build-dir/NSO-NSOPORTUI-PUB/node_modules/.bin/vue-cli-service:5:25)
build 10-Jan-2019 14:17:28 [ERROR] at Module._compile (internal/modules/cjs/loader.js:688:30)
build 10-Jan-2019 14:17:28 [ERROR] at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
build 10-Jan-2019 14:17:28 [ERROR] at Module.load (internal/modules/cjs/loader.js:598:32)
build 10-Jan-2019 14:17:28 [ERROR] at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
build 10-Jan-2019 14:17:28 [ERROR] at Function.Module._load (internal/modules/cjs/loader.js:529:3)
I already tried to reproduce the issue locally by deleting node_modules, package-lock.json and forcing npm to fetch packages only from our local repo just like our build server do... but it still works.
PS C:\Users\S\Desktop\mm> ng new my
internal/modules/cjs/loader.js:583
throw err;
^
Error: Cannot find module 'symbol-observable'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
internal/modules/cjs/loader.js:583
throw err;
^
Error: Cannot find module 'oauth2-server/lib/errors'
I have this problem , don't know why this error is coming.But I already have the file in the correct folder.
I got same problem here. I can not use npm and get an error even when I type npm --version
C:\Users\TUGRULEL>npm --version
internal/modules/cjs/loader.js:582
throw err;
^
Error: Cannot find module 'json-parse-better-errors'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\parse-json.js:2:27)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
internal/modules/cjs/loader.js:582
throw err;
^
Error: Cannot find module 'json-parse-better-errors'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\parse-json.js:2:27)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
It is unlikely that this is indeed an issue with Node.js. The error is a generic error in case a require call fails.
Please verify that the file really exists, that the file permissions are set correctly and provide a minimal code example with only Node.js core code with which it's possible to reproduce the issue. There could also be an issue in a package that tries to load the file.
Without that information it is pretty much impossible to determine the actual cause. It is likely that the actual cause will be revealed while writing some code to reproduce the issue. If there is indeed a problem in Node.js, please open a new issue for it as I am closing this one for now.
I am sorry that there is little that can be done to further ease the debugging at the moment.
In an upcoming Node.js version there will be some further information in the error message itself that will probably make it a lot easier.
Ok. Thanks
Thanks.
Komal
On Thu, Feb 28, 2019 at 1:10 PM Ruben Bridgewater notifications@github.com
wrote:
I am sorry that there is little that can be done to further ease the
debugging at the moment.In an upcoming Node.js version there will be some further information in
the error message itself that will probably make it a lot easier.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/nodejs/node/issues/24735#issuecomment-468249651, or mute
the thread
https://github.com/notifications/unsubscribe-auth/As0NzmjBqLS-VTddduILYmlltNtY-CMlks5vR8cvgaJpZM4Y6wNc
.
Most helpful comment
It is unlikely that this is indeed an issue with Node.js. The error is a generic error in case a
requirecall fails.Please verify that the file really exists, that the file permissions are set correctly and provide a minimal code example with only Node.js core code with which it's possible to reproduce the issue. There could also be an issue in a package that tries to load the file.
Without that information it is pretty much impossible to determine the actual cause. It is likely that the actual cause will be revealed while writing some code to reproduce the issue. If there is indeed a problem in Node.js, please open a new issue for it as I am closing this one for now.