I am trying to use EAS in my managed expo app but running into this issue at the build cmd(eas build).
My app works perfectly fine when doing expo start.
This is the error log I get from eas build. What should I do to fix this problem? I don't understand why it's bascially saying that it can't find my npm folder(at least that appears to be the problem.)
Running npm in the root dir of your repository
[stderr] npm
[stderr] WARN read-shrinkwrap This version of npm is compatible with lockfileVersion#1, but package-lock.json was generated for lockfileVersion#2. I'll try to do my best with it!
[stderr] npm
[stderr] WARN tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-launcher-a18e8b31/ios/ReactNative/EXDevLauncherRCTBridge.m'
[stderr] npm WARN tar
[stderr] ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-launcher-a18e8b31/ios/Errors/EXDevLauncherRedBox.m'
[stderr] npm WARN tar
[stderr] ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-launcher-a18e8b31/ios/Unsafe/RCTPackagerConnection+EXDevLauncherPackagerConnectionInterceptor.m'
[stderr] npm WARN tar
[stderr] ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-launcher-a18e8b31/build/DevLauncher.js.map'
[stderr] npm WARN tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-launcher-a18e8b31/build/DevLauncherErrorManager.js.map'
[stderr] npm WARN tar
[stderr] ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-launcher-a18e8b31/build/DevLauncherErrorManager.web.js.map'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-launcher-a18e8b31/build/setUpErrorHandler.fx.js.map'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-launcher-a18e8b31/build/setUpErrorHandler.fx.web.js.map'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-launcher-a18e8b31/build/WebUnsupportedError.js.map'
[stderr] npm WARN tar
[stderr] ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/android/src/main/java/expo/modules/devmenu/modules/DevMenuSettings.kt'
[stderr] npm
[stderr] WARN tar ENOENT: no such file or directory, lstat '/root/workingdir/build/node_modules/.staging/expo-dev-launcher-a18e8b31/android/src/debug/res'
[stderr] npm WARN tar
[stderr] ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/android/src/main/java/expo/modules/devmenu/tests/DevMenuTestInterceptor.kt'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, lstat '/root/workingdir/build/node_modules/.staging/expo-dev-launcher-a18e8b31/android/src'
[stderr] npm WARN tar
[stderr] ENOENT: no such file or directory, lstat '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/ios/Modules'
[stderr] npm WARN tar ENOENT: no such file or directory, lstat '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/ios/Modules'
[stderr] npm WARN tar
[stderr] ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/ios/DevMenuLoadingView.m'
[stderr] npm WARN tar
[stderr] ENOENT: no such file or directory, lstat '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/ios/Modules'
[stderr] npm WARN tar ENOENT: no such file or directory, lstat '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/ios/Modules'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, lstat '/root/workingdir/build/node_modules/.staging/expo-dev-launcher-a18e8b31/android/src/main/res/drawable-xhdpi'
[stderr] npm WARN tar
[stderr] ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/ios/DevMenuRCTBridge.m'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Transitioning/DevMenuREAAllTransitions.m'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Nodes/DevMenuREAAlwaysNode.m'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Nodes/DevMenuREABezierNode.m'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Nodes/DevMenuREABlockNode.m'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Nodes/DevMenuREACallFuncNode.m'
[stderr] npm WARN tar
[stderr] ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Nodes/DevMenuREAClockNodes.m'
[stderr] npm WARN tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Nodes/DevMenuREAConcatNode.m'
[stderr] npm WARN tar
[stderr] ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Nodes/DevMenuREACondNode.m'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Nodes/DevMenuREADebugNode.m'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Nodes/DevMenuREAEventNode.m'
[stderr] npm WARN tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Nodes/DevMenuREAFunctionNode.m'
[stderr] npm WARN tar
[stderr] ENOENT: no such file or directory, lstat '/root/workingdir/build/node_modules/.staging/react-native-b6181b95/ReactAndroid/src/main/java/com/facebook/react/common/network'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Nodes/DevMenuREAJSCallNode.m'
[stderr] npm
[stderr] WARN tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/DevMenuREAModule.m'
[stderr] npm WARN tar
[stderr] ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-launcher-a18e8b31/android/src/main/res/drawable-hdpi/dev_launcher_ic_refresh_white_36dp.png'
[stderr] npm
[stderr] WARN tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Nodes/DevMenuREANode.m'
[stderr] npm WARN tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-launcher-a18e8b31/android/src/main/res/drawable-mdpi/dev_launcher_ic_refresh_white_36dp.png'
[stderr] npm WARN tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/DevMenuREANodesManager.m'
[stderr] npm WARN tar
[stderr] ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Nodes/DevMenuREAOperatorNode.m'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Nodes/DevMenuREAParamNode.m'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Nodes/DevMenuREAPropsNode.m'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Nodes/DevMenuREASetNode.m'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, lstat '/root/workingdir/build/node_modules/.staging/react-native-b6181b95/ReactAndroid/src/main/java/com/facebook/react/config'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Nodes/DevMenuREAStyleNode.m'
[stderr] npm
[stderr] WARN tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Nodes/DevMenuREATransformNode.m'
[stderr] npm
[stderr] WARN tar ENOENT: no such file or directory, lstat '/root/workingdir/build/node_modules/.staging/react-native-b6181b95/ReactAndroid/src'
[stderr] npm
[stderr] WARN tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Transitioning/DevMenuREATransition.m'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/react-native-b6181b95/ReactAndroid/src/main/java/com/facebook/react/fabric/BUCK'
[stderr] npm
[stderr] WARN tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Transitioning/DevMenuREATransitionAnimation.m'
[stderr] npm
[stderr] WARN tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-launcher-a18e8b31/ios/assets/bundle/assets/settings-filled-icon.png'
[stderr] npm
[stderr] WARN tar ENOENT: no such file or directory, lstat '/root/workingdir/build/node_modules/.staging/react-native-b6181b95/ReactAndroid/src'
[stderr] npm
[stderr] WARN tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Transitioning/DevMenuREATransitionManager.m'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Transitioning/DevMenuREATransitionValues.m'
[stderr] npm
[stderr] WARN tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-launcher-a18e8b31/ios/assets/bundle/assets/user-filled-icon.png'
[stderr] npm
[stderr] WARN tar ENOENT: no such file or directory, lstat '/root/workingdir/build/node_modules/.staging/react-native-b6181b95/ReactAndroid/src'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-reanimated/ios/Nodes/DevMenuREAValueNode.m'
[stderr] npm WARN tar
[stderr] ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNFlingHandler.m'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, lstat '/root/workingdir/build/node_modules/.staging/react-native-b6181b95/ReactAndroid/src'
[stderr] npm
[stderr] WARN tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-gesture-handler/ios/Handlers/DevMenuRNForceTouchHandler.m'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandler.m'
[stderr] npm WARN tar ENOENT: no such file or directory, lstat '/root/workingdir/build/node_modules/.staging/expo-dev-launcher-a18e8b31/ios/Views'
[stderr] npm
[stderr] WARN tar ENOENT: no such file or directory, lstat '/root/workingdir/build/node_modules/.staging/react-native-b6181b95/ReactAndroid/src'
[stderr] npm WARN tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerButton.m'
[stderr] npm WARN tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerEvents.m'
[stderr] npm
[stderr] WARN tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-launcher-a18e8b31/ios/ReactNative/EXDevLauncherBundleURLProviderInterceptor.swift'
[stderr] npm
[stderr] WARN tar ENOENT: no such file or directory, lstat '/root/workingdir/build/node_modules/.staging/react-native-b6181b95/ReactAndroid/src'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerManager.m'
[stderr] npm WARN tar
[stderr] ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-launcher-a18e8b31/ios/Errors/EXDevLauncherErrorLogView.swift'
[stderr] npm WARN
[stderr] tar ENOENT: no such file or directory, open '/root/workingdir/build/node_modules/.staging/expo-dev-menu-8a1c2d72/vendored/react-native-gesture-handler/ios/DevMenuRNGestureHandlerModule.m'
Related
Task :packages:react-native-codegen:android:buildCodegenCLI
react-native-codegen#0.0.7 prepublish /tmp/tmp.Yy5pPOnaYt
yarn run build
npm WARN deprecated source-map-resolve#0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated resolve-url#0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-url#0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated urix#0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN prepublish-on-install As of npm#5, `prepublish` scripts are deprecated.
npm WARN prepublish-on-install Use `prepare` for build steps and `prepublishOnly` for upload-only.
npm WARN prepublish-on-install See the deprecation note in `npm help scripts` for more information.
sh: line 1: yarn: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! react-native-codegen#0.0.7 prepublish: `yarn run build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the react-native-codegen#0.0.7 prepublish 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! /home/csk882/.npm/_logs/2023-01-20T02_59_21_039Z-debug.log
> Task :packages:react-native-codegen:android:buildCodegenCLI FAILED
Execution failed for task ':packages:react-native-codegen:android:buildCodegenCLI'.
> Process 'command '/home/csk882/mt/metamask-mobile/node_modules/react-native/packages/react-native-codegen/android/../scripts/oss/build.sh'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
An error occurs when executing apk build in android studio
After building normally, the app should be deployed, but a build error occurred and it does not proceed any further.
This is driving me nuts!
I have an NPM module that I successfully build in my Jenkins pipeline in a Windows node. Then later on in my pipeline, I execute another task, and get Cannot find module 'C:\Program Files\nodejs\node_modules\grunt-cli\bin\grunt'. So for the hell of it I try to install grunt-cli and grunt again before I execute my task and see this.
00:10:42.733 + npm install -g grunt-cli
00:10:49.273 npm ERR! code EEXIST
00:10:49.273 npm ERR! path C:\Program Files\nodejs\node_modules\grunt-cli\bin\grunt
00:10:49.273 npm ERR! dest C:\Program Files\nodejs\grunt
00:10:49.273 npm ERR! EEXIST: file already exists, cmd shim 'C:\Program Files\nodejs\node_modules\grunt-cli\bin\grunt' -> 'C:\Program Files\nodejs\grunt'
00:10:49.273 npm ERR! File exists: C:\Program Files\nodejs\grunt
00:10:49.273 npm ERR! Remove the existing file and try again, or run npm
00:10:49.273 npm ERR! with --force to overwrite files recklessly.
00:10:49.273
00:10:49.273 npm ERR! A complete log of this run can be found in:
00:10:49.273 npm ERR! C:\Users\vagrant\AppData\Roaming\npm-cache\_logs\2022-03-09T03_53_47_072Z-debug.log
00:10:49.279 [Pipeline] echo
00:10:49.280 WARNING: grunt-cli is already installed!
00:10:49.283 [Pipeline] sh
00:10:49.555 + grunt print-artifact-name -q
00:10:49.556 internal/modules/cjs/loader.js:883
00:10:49.556 throw err;
00:10:49.556 ^
00:10:49.556
00:10:49.556 Error: Cannot find module 'C:\Program Files\nodejs\node_modules\grunt-cli\bin\grunt'
00:10:49.556 at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
00:10:49.556 at Function.Module._load (internal/modules/cjs/loader.js:725:27)
00:10:49.556 at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
00:10:49.556 at internal/main/run_main_module.js:17:47 {
00:10:49.556 code: 'MODULE_NOT_FOUND',
00:10:49.556 requireStack: []
00:10:49.556 }
What's going on? How can I solve this?
When I run npm i -g express-generator, it errors and shows this:
➜ GitHub sudo npm i -g express-generator
WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/sorted-object-b497dff3/lib'ck for /usr/local/li
WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/commander-898e1b43/typings'
WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/minimist-cb6858d4/example'
WARN WARNtar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/minimist-cb6858d4/test'
tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/ejs-2de19af3/lib'
WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/express-generator-2930afea/bin'
WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/concat-map-200521fc/example'
WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/concat-map-200521fc/test'
WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/express-generator-2930afea/templates/css'
WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/express-generator-2930afea/templates/js'
WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/express-generator-2930afea/templates/js/routes'
WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/express-generator-2930afea/templates/views'
WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/mkdirp-f65a1b18/bin'
WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/mkdirp-f65a1b18/examples'
WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/mkdirp-f65a1b18/test'
npm ERR! path /usr/local/lib/node_modules/express-generator/node_modules/mkdirp/bin/cmd.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/express-generator/node_modules/mkdirp/bin/cmd.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/mlgyshan/.npm/_logs/2018-12-14T20_50_52_005Z-debug.log
➜ GitHub
I also tried running npm cache clean --force but still receive this error.
I just re-installed node and it worked.
I was trying to install gulp-babel with command npm install gulp-babel but after some process found below error :
+-- UNMET PEER DEPENDENCY extraneous error: ENOENT: no such file or directory, open 'D:\Zenverse\zenverse\node_modules\#babel\core\package.json
Full Logcat is as follows :
+-- UNMET PEER DEPENDENCY extraneous error: ENOENT: no such file or directory, open '\node_modules\#babel\core\package.json
+-- UNMET DEPENDENCY babel-core#^6.26.3
+-- gulp-babel#7.0.1
| +-- plugin-error#1.0.1
| `-- vinyl-sourcemaps-apply#0.2.1
`-- UNMET PEER DEPENDENCY webpack#2 || 3 || 4
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\core\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\helper-define-map\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\helper-module-imports\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\helper-module-transforms\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\plugin-proposal-unicode-property-regex\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\helper-simple-access\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\plugin-transform-block-scoping\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\plugin-transform-dotall-regex\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\plugin-transform-classes\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\plugin-transform-regenerator\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\plugin-transform-unicode-regex\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\template\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\traverse\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\chokidar\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\babel-register\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\output-file-sync\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\core\node_modules\braces\package.json'
npm WARN enoent ENOENT: no such file or directory, open '\node_modules\#babel\core\node_modules\extglob\package.json'
npm WARN #babel/plugin-syntax-async-generators#7.0.0-beta.51 requires a peer of #babel/core#>=7.0.0-beta.50 <7.0.0-rc.0 but none was installed.
npm WARN #babel/plugin-syntax-object-rest-spread#7.0.0-beta.51 requires a peer of #babel/core#>=7.0.0-beta.50 <7.0.0-rc.0 but none was installed.
npm WARN #babel/plugin-syntax-optional-catch-binding#7.0.0-beta.51 requires a peer of #babel/core#>=7.0.0-beta.50 <7.0.0-rc.0 but none was installed.
npm WARN gulp-babel#7.0.1 requires a peer of babel-core#6 || 7 || ^7.0.0-alpha || ^7.0.0-beta || ^7.0.0-rc but none was installed.
npm WARN babel-loader#7.1.4 requires a peer of babel-core#6 but none was installed.
npm WARN babel-loader#7.1.4 requires a peer of webpack#2 || 3 || 4 but none was installed.
npm WARN zenverse#8.3.0 No repository field.
npm WARN zenverse#8.3.0 No license field.
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "gulp-babel"
npm ERR! node v4.4.2
npm ERR! npm v3.10.8
npm ERR! path \node_modules\babel-generator
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename
npm ERR! Error: EPERM: operation not permitted, rename '\node_modules\babel-generator' -> '\node_modules\.babel-generator.DELETE'
npm ERR! at moveAway (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:38:5)
npm ERR! at destStatted (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:27:7)
npm ERR! at FSReqWrap.oncomplete (fs.js:82:15)
npm ERR!
npm ERR! Error: EPERM: operation not permitted, rename '\node_modules\babel-generator' -> '\node_modules\.babel-generator.DELETE'
npm ERR! at Error (native)
npm ERR! { [Error: EPERM: operation not permitted, rename '\node_modules\babel-generator' -> '\node_modules\.babel-generator.DELETE'] parent: 'zenverse' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! \npm-debug.log
what seems to be the problem?
I have gone through the same issue and the solution for me was to update node to the latest version.
Please download the latest version of node from the below link:
https://nodejs.org/en/
I've looked at a few answers but cannot resolve this. I've completely removed Node from my system and reinstalled, but I still can't install any packages.
I get the following error every time:
npm WARN saveError ENOENT: no such file or directory, open '/Users/mattsaunders/Documents/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/mattsaunders/Documents/package.json'
npm -v shows 5.5.1
What is going on here?
It looks like you're not calling install from an npm project, so it can't find your package.json file