My expo project doesn't start when I try to use expo start.
Node Version - v12.18.1
Expo Version - 3.21.10
When i run expo start:
Error: react-native is not installed. Please run `npm install` or `yarn` in your project directory.
Couldn't start project. Please fix the errors and restart the project.
Error: Couldn't start project. Please fix the errors and restart the project.
at startExpoServerAsync (C:\#expo\xdl#57.9.18\src\Project.ts:2070:11)
at Object.startAsync (C:\#expo\xdl#57.9.18\src\Project.ts:2384:5)
at action (C:\Users\Admin\AppData\Roaming\npm\node_modules\expo-cli\src\commands\start.ts:181:3)
at C:\Users\Admin\AppData\Roaming\npm\node_modules\expo-cli\src\commands\start.ts:354:16
at Command.<anonymous> (C:\Users\Admin\AppData\Roaming\npm\node_modules\expo-cli\src\exp.ts:80:7)
Then I ran npm install mentioned in the above error but then got this error
npm ERR! code ERR_OSSL_PEM_NO_START_LINE
npm ERR! error:0909006C:PEM routines:get_name:no start line
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Admin\AppData\Roaming\npm-cache\_logs\2020-06-26T05_41_06_628Z-debug.log
This is my error log file
1212 silly saveTree +-- react-navigation#4.3.9
1212 silly saveTree +-- react#16.9.0
1212 silly saveTree +-- redux#4.0.5
1212 silly saveTree `-- yarn#1.22.4
1213 verbose stack Error: error:0909006C:PEM routines:get_name:no start line
1213 verbose stack at Object.createSecureContext (_tls_common.js:149:17)
1213 verbose stack at Object.connect (_tls_wrap.js:1588:48)
1213 verbose stack at HttpsAgent.createConnection (https.js:130:22)
1213 verbose stack at HttpsAgent.createSocket (C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\agentkeepalive\lib\_http_agent.js:265:26)
1213 verbose stack at HttpsAgent.createSocket (C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\agentkeepalive\lib\agent.js:77:11)
1213 verbose stack at HttpsAgent.addRequest (C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\agentkeepalive\lib\_http_agent.js:239:10)
1213 verbose stack at new ClientRequest (_http_client.js:296:16)
1213 verbose stack at request (https.js:314:10)
1213 verbose stack at C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\node-fetch-npm\src\index.js:54:17
1213 verbose stack at new Promise (<anonymous>)
1213 verbose stack at fetch (C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\node-fetch-npm\src\index.js:41:10)
1213 verbose stack at C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\make-fetch-happen\index.js:332:14
1213 verbose stack at C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\promise-retry\index.js:29:24
1214 verbose cwd D:\React\customer-app
1215 verbose Windows_NT 10.0.18362
1216 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Admin\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
1217 verbose node v12.18.0
1218 verbose npm v6.14.5
1219 error code ERR_OSSL_PEM_NO_START_LINE
1220 error error:0909006C:PEM routines:get_name:no start line
1221 verbose exit [ 1, true ]
Please help me how to resolve this error!
Try doing this before
npm set registry http://registry.npmjs.org/
https://stackoverflow.com/a/57195189
Related
when i tried to run npm install -g create-react-app to create react app getting following error.
when i tired to run "npm install -g npm" getting same error.
Could you please guide me solve this issue ?
debug.log file,
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'create-react-app'
1 verbose cli ]
2 info using npm#6.14.13
3 info using node#v14.17.1
4 verbose npm-session 5c7b621106479737
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData error for create-react-app#latest error:0909006C:PEM routines:get_name:no start line
8 timing stage:rollbackFailedOptional Completed in 1ms
9 timing stage:runTopLevelLifecycles Completed in 162ms
10 verbose stack Error: error:0909006C:PEM routines:get_name:no start line
10 verbose stack at Object.createSecureContext (_tls_common.js:149:17)
10 verbose stack at Object.connect (_tls_wrap.js:1597:48)
10 verbose stack at HttpsAgent.createConnection (https.js:137:22)
10 verbose stack at HttpsAgent.createSocket (C:\Program Files\nodejs\node_modules\npm\node_modules\agentkeepalive\lib\_http_agent.js:265:26)
10 verbose stack at HttpsAgent.createSocket (C:\Program Files\nodejs\node_modules\npm\node_modules\agentkeepalive\lib\agent.js:77:11)
10 verbose stack at HttpsAgent.addRequest (C:\Program Files\nodejs\node_modules\npm\node_modules\agentkeepalive\lib\_http_agent.js:239:10)
10 verbose stack at new ClientRequest (_http_client.js:305:16)
10 verbose stack at request (https.js:333:10)
10 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:54:17
10 verbose stack at new Promise (<anonymous>)
10 verbose stack at fetch (C:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:41:10)
10 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\make-fetch-happen\index.js:332:14
10 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\promise-retry\index.js:29:24
11 verbose cwd C:\Users\user\development
12 verbose Windows_NT 10.0.19042
13 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "create-react-app"
14 verbose node v14.17.1
15 verbose npm v6.14.13
16 error code ERR_OSSL_PEM_NO_START_LINE
17 error error:0909006C:PEM routines:get_name:no start line
18 verbose exit [ 1, true ]```
Use the below commands to set up the development environment.
npx create-react-app my-app
cd my-app
npm start
Always follow the Documentation :)
I am running the following command (windows) (npm v7.0.0-beta.8) (node v12.18.1)
ng new light-webapp
It throws the following error
...
CREATE light-webapp/e2e/tsconfig.json (299 bytes)
CREATE light-webapp/e2e/src/app.e2e-spec.ts (645 bytes)
CREATE light-webapp/e2e/src/app.po.ts (301 bytes)
| Installing packages...npm ERR! code ERESOLVE
npm ERR! unable to resolve dependency tree
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\...\AppData\Local\npm-cache\_logs\2021-05-15T14_51_21_350Z-debug.log
× Package install failed, see above.
The Schematic workflow failed. See above.
The above mentioned error log shows the following:
...
1899 timing idealTree:node_modules/karma-jasmine Completed in 0ms
1900 silly placeDep jasmine-core#>=3.7.1 Symbol(CONFLICT) for: karma-jasmine-html-reporter#1.6.0
1901 timing idealTree Completed in 15783ms
1902 timing command:install Completed in 15789ms
1903 verbose type peer
1904 verbose stack Error: unable to resolve dependency tree
1904 verbose stack at Arborist.[placeDep] (C:\Program Files\nodejs\node_modules\npm\node_modules\#npmcli\arborist\lib\arborist\build-ideal-tree.js:814:27)
1904 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\#npmcli\arborist\lib\arborist\build-ideal-tree.js:631:46
1904 verbose stack at Array.map (<anonymous>)
1904 verbose stack at Arborist.[buildDepStep] (C:\Program Files\nodejs\node_modules\npm\node_modules\#npmcli\arborist\lib\arborist\build-ideal-tree.js:631:8)
1904 verbose stack at async Arborist.buildIdealTree (C:\Program Files\nodejs\node_modules\npm\node_modules\#npmcli\arborist\lib\arborist\build-ideal-tree.js:166:7)
1904 verbose stack at async Promise.all (index 1)
1904 verbose stack at async Arborist.reify (C:\Program Files\nodejs\node_modules\npm\node_modules\#npmcli\arborist\lib\arborist\reify.js:125:5)
1904 verbose stack at async install (C:\Program Files\nodejs\node_modules\npm\lib\install.js:40:5)
1905 verbose cwd C:\Users\...\VisualStudioCodeWorkspace\light-webapp
1906 verbose Windows_NT 10.0.18363
1907 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--quiet"
1908 verbose node v12.18.1
1909 verbose npm v7.0.0-beta.8
1910 error code ERESOLVE
1911 error unable to resolve dependency tree
Any ideas why node is failing on such a simple command?
Installing the latest versions of node and npm separately solved my issue.
My npm version: 6.4.1
node: 10.14.1
Ionic: 4.7.0
Cordova: 8.1.2 (Basically all of them are of the latest version)
When I try to install an ionic sidemenu at a specific location, an error occurs as such:
npm WARN deprecated browserslist#2.11.3: Browserslist 2 could fail on
reading Browserslist >3.0 config used in other tools.
npm ERR! code Z_BUF_ERROR
npm ERR! errno -5
npm ERR! zlib: unexpected end of file
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\15432\AppData\Roaming\npm-cache\_logs\2019-01-
12T00_54_51_838Z-debug.log
So I navigate to the log document and have a look on the end of the file:
1474 silly saveTree | +-- path-to-regexp#1.7.0
1474 silly saveTree | | `-- isarray#0.0.1
1474 silly saveTree | `-- serviceworker-cache-polyfill#4.0.0
1474 silly saveTree `-- zone.js#0.8.26
1475 verbose stack ZlibError: zlib: unexpected end of file
1475 verbose stack at Zlib.(anonymous function).onerror (C:\Program
Files\nodejs\node_modules\npm\node_modules\minizlib\index.js:131:21)
1475 verbose stack at Unzip.write (C:\Program
Files\nodejs\node_modules\npm\node_modules\minizlib\index.js:255:31)
1475 verbose stack at Unzip.flush (C:\Program
Files\nodejs\node_modules\npm\node_modules\minizlib\index.js:222:10)
1475 verbose stack at Unzip.end (C:\Program
Files\nodejs\node_modules\npm\node_modules\minizlib\index.js:229:10)
1475 verbose stack at Object.end (C:\Program
Files\nodejs\node_modules\npm\node_modules\tar\lib\parse.js:415:21)
1475 verbose stack at PassThrough.onend (_stream_readable.js:628:10)
1475 verbose stack at Object.onceWrapper (events.js:273:13)
1475 verbose stack at PassThrough.emit (events.js:187:15)
1475 verbose stack at endReadableNT (_stream_readable.js:1094:12)
1475 verbose stack at process._tickCallback
(internal/process/next_tick.js:63:19)
1476 verbose cwd D:\Coursera Doc\Ionic\conFusion
1477 verbose Windows_NT 10.0.17134
1478 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program
Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
1479 verbose node v10.14.1
1480 verbose npm v6.4.1
1481 error code Z_BUF_ERROR
1482 error errno -5
1483 error zlib: unexpected end of file
1484 verbose exit [ -5, true ]
I really have no idea what this means. So I try to type "npm install" and fix all the problems on the subfolder in which I create my sidemenu, and the same issue, as above, occurs.
I hope that anyone can help me address this issue.
This problem seems to be a DNS issue when connecting to npm registry.
Please check (https://status.npmjs.org/) first to see if all services are operational then clear your npm cache.
Force clean your npm cache by doing:
npm cache clean --force
I faced this issue with the node version 10.15.0 installed on my machine. I got a very similar error while installing the ts-node-dev.
npm ERR! code Z_BUF_ERROR
npm ERR! errno -5
npm ERR! zlib: unexpected end of file
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\xyz\AppData\Roaming\npm-cache\_logs\2021-11-30T07_38_27_700Z-debug.log
I tried the npm cache clean --force command but that didn't solve the problem.
Finally, I upgraded my node to version 16.13.0 and that solved the issue.
Problem
Failed at the ffmpeg-binaries#4.0.0 install script 'node install'
How I do it
npm i ffmpeg-binaries
Environment
Ubuntu 14 on VDS
Node v6.0.0
NVM v3.8.6
Last string of npm-debug
9491 silly rollbackFailedOptional Starting
9492 silly rollbackFailedOptional Finishing
9493 silly runTopLevelLifecycles Starting
9494 silly runTopLevelLifecycles Finishing
9495 silly install printInstalled
9496 warn root#1.0.0 No description
9497 warn root#1.0.0 No repository field.
9498 verbose stack Error: ffmpeg-binaries#4.0.0 install: `node install`
9498 verbose stack Exit status 137
9498 verbose stack at EventEmitter.<anonymous> (/root/.nvm/versions/node/v6.0.0/lib/node_modules/npm/lib/utils/lifecycle.js:239:16)
9498 verbose stack at emitTwo (events.js:106:13)
9498 verbose stack at EventEmitter.emit (events.js:191:7)
9498 verbose stack at ChildProcess.<anonymous> (/root/.nvm/versions/node/v6.0.0/lib/node_modules/npm/lib/utils/spawn.js:24:14)
9498 verbose stack at emitTwo (events.js:106:13)
9498 verbose stack at ChildProcess.emit (events.js:191:7)
9498 verbose stack at maybeClose (internal/child_process.js:850:16)
9498 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
9499 verbose pkgid ffmpeg-binaries#4.0.0
9500 verbose cwd /root
9501 error Linux 2.6.32-042stab127.2
9502 error argv "/root/.nvm/versions/node/v6.0.0/bin/node" "/root/.nvm/versions/node/v6.0.0/bin/npm" "i" "ffmpeg-binaries"
9503 error node v6.0.0
9504 error npm v3.8.6
9505 error code ELIFECYCLE
9506 error ffmpeg-binaries#4.0.0 install: `node install`
9506 error Exit status 137
9507 error Failed at the ffmpeg-binaries#4.0.0 install script 'node install'.
9507 error Make sure you have the latest version of node.js and npm installed.
9507 error If you do, this is most likely a problem with the ffmpeg-binaries package,
9507 error not with npm itself.
9507 error Tell the author that this fails on your system:
9507 error node install
9507 error You can get information on how to open an issue for this project with:
9507 error npm bugs ffmpeg-binaries
9507 error Or if that isn't available, you can get their info via:
9507 error npm owner ls ffmpeg-binaries
9507 error There is likely additional logging output above.
9508 verbose exit [ 1, true ]
I have also recently been having this error, but I have since solved it. The thing you need to do is use the command:
npm install ffbinaries
instead of using ffmpeg-binaries.
The reason for this is because the binaries were originally created for ubuntu linux. Hope this helps! :)
I'm trying to install mocha on my windows 10 but I'm getting this error on the terminal
$npm install mocha#3.0.0 --save-dev
npm ERR! Unexpected end of input at 1:19983
npm ERR! a":"./bin/_mocha"},"directories":{},"dist":{"shasum":"653712e9852cce4
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\NS\AppData\Roaming\npm-cache\_logs\2017-06-24T21_47_36_363Z-debug.log
this is the log file content
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Users\\NS\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'mocha#3.0.0',
1 verbose cli '--save-dev' ]
2 info using npm#5.0.2
3 info using node#v6.10.2
4 silly install loadCurrentTree
5 silly install readLocalPackageData
6 http fetch GET 200 https://registry.npmjs.org/mocha 34ms (from cache)
7 silly fetchPackageMetaData error for mocha#3.0.0 Unexpected end of input at 1:19983
7 silly fetchPackageMetaData a":"./bin/_mocha"},"directories":{},"dist":{"shasum":"653712e9852cce4
7 silly fetchPackageMetaData ^
8 verbose stack SyntaxError: Unexpected end of input at 1:19983
8 verbose stack a":"./bin/_mocha"},"directories":{},"dist":{"shasum":"653712e9852cce4
8 verbose stack ^
8 verbose stack at SyntaxError (native)
8 verbose stack at Object.parseJSON (C:\Users\NS\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\node_modules\json-parse-helpfulerror\node_modules\jju\lib\parse.js:745:13)
8 verbose stack at parse (C:\Users\NS\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\node_modules\json-parse-helpfulerror\index.js:10:13)
8 verbose stack at consumeBody.call.then.buffer (C:\Users\NS\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\src\body.js:96:50)
8 verbose stack at process._tickCallback (internal/process/next_tick.js:109:7)
9 verbose cwd C:\Users\NS\node-test
10 verbose Windows_NT 10.0.15063
11 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\NS\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "mocha#3.0.0" "--save-dev"
12 verbose node v6.10.2
13 verbose npm v5.0.2
14 error Unexpected end of input at 1:19983
14 error a":"./bin/_mocha"},"directories":{},"dist":{"shasum":"653712e9852cce4
14 error ^
15 verbose exit [ 1, true ]
if you are using the latest version of node
try downgrading to the LTS version
//
sudo npm install n -g
sudo n lts
if you are using it in local then use command "npm cache clean --force" to clear cache. Then run your command it will work