Skip to content

Error in create project #10610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
Robson96 opened this issue Aug 23, 2024 · 1 comment
Open
3 tasks done

Error in create project #10610

Robson96 opened this issue Aug 23, 2024 · 1 comment
Labels
bug-pending-triage Reported bug, pending triage to confirm.

Comments

@Robson96
Copy link

Robson96 commented Aug 23, 2024

Issue Description

I'm trying to create a project in several ways but it always gives the same error

Reproduction

ns create myCoolApp --js

Relevant log output (if applicable)

node:internal/modules/cjs/loader:1147
  throw err;
  ^

Error: Cannot find module 'C:\Users\user\Documents\native-script\myCoolApp\node_modules\npm\bin\npm-cli.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
    at Module._load (node:internal/modules/cjs/loader:985:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v20.10.0
node:internal/modules/cjs/loader:1147
  throw err;
  ^

Error: Cannot find module 'C:\Users\user\Documents\native-script\myCoolApp\node_modules\npm\bin\npm-cli.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
    at Module._load (node:internal/modules/cjs/loader:985:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v20.10.0
Command "npm.cmd" failed with exit code 1

Environment

PS C:\Users\user\Documents\native-script> sdkmanager.bat --version
16.0-alpha01

PS C:\Users\user\Documents\native-script> javac --version
javac 17.0.8.1

PS C:\Users\user\Documents\native-script> ns -v
8.8.1
✔ Up to date.

OS: Windows 11 10.0.22631
CPU: (8) x64 AMD Ryzen 5 7520U with Radeon Graphics
Shell: Not Found
node: 20.10.0
npm: 10.2.3
nativescript: Not Found

# android
java: Not Found
ndk: Not Found
apis: 32, 33, 34
build_tools: 30.0.3, 33.0.1, 34.0.0
system_images:
  - android-27 | Google Play Intel x86 Atom
  - android-31 | Google Play Intel x86_64 Atom
  - android-33 | Google Play Intel x86_64 Atom
  - android-34 | Google APIs Intel x86_64 Atom

# ios
xcode: Not Found
cocoapods: Not Found
python: Not Found
python3: Not Found
ruby: Not Found
platforms: Not Found

Dependencies

"dependencies": {},
"devDependencies": {}

Please accept these terms

@Robson96 Robson96 added the bug-pending-triage Reported bug, pending triage to confirm. label Aug 23, 2024
@liwenbin5242
Copy link

i met the same question to,i want to know how to slove it
: Cannot find module 'E:\codes\ns\myCoolApp\node_modules\npm\bin\npm-cli.js'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-pending-triage Reported bug, pending triage to confirm.
Projects
None yet
Development

No branches or pull requests

2 participants